/*
 * com_cute4j_swing_graphics_FontMetrics.cpp  0.4.0 / 2010-12-23
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#include "com_cute4j_swing_graphics_FontMetrics.h"

#include "FontMetricsDelegate.h"

/*
 * Native implementation for: com.cute4j.swing.graphics.FontMetrics
 */

JNIEXPORT void JNICALL
Java_com_cute4j_swing_graphics_FontMetrics__1getMetrics
  (JNIEnv *env, jobject obj, jlong fontMetricsPointer)
{
  FontMetricsDelegate::getMetrics(env, obj, FONT_METRICS);
}

JNIEXPORT jint JNICALL
Java_com_cute4j_swing_graphics_FontMetrics__1stringWidth
  (JNIEnv *env, jobject obj, jlong fontMetricsPointer, jstring str)
{
  return FontMetricsDelegate::stringWidth(env, obj, FONT_METRICS, str);
}

JNIEXPORT void JNICALL
Java_com_cute4j_swing_graphics_FontMetrics__1initialize
  (JNIEnv *env, jclass cls)
{
  FontMetricsDelegate::initialize(env, cls);
}


